package link.xieyu.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单表
 */
@ApiModel(value = "link-xieyu-pojo-AppOrder")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AppOrder implements Serializable {
    @ApiModelProperty(value = "")
    private Integer id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    /**
     * 帖子id
     */
    @ApiModelProperty(value = "帖子id")
    private Integer articleId;

    /**
     * 作者id
     */
    @ApiModelProperty(value = "作者id")
    private Integer authorId;

    /**
     * 帖子价格
     */
    @ApiModelProperty(value = "帖子价格")
    private Integer price;

    /**
     * 是否已支付(0未支付,1已支付,2订单关闭)
     */
    @ApiModelProperty(value = "是否已支付(0未支付,1已支付,2订单关闭,3订单退款)")
    private Integer isPay;

    /**
     * 交易渠道(1.微信2.支付宝)
     */
    @ApiModelProperty(value = "交易渠道(1.微信2.支付宝)")
    private Integer channel;

    /**
     * 支付时间
     */
    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}
